const {list,datalist}=require('./mock')
module.exports=app=>{
    app.get('/api/list',(req,res)=>{
        res.send({
            code:200,
            data:list
        })
    })
    app.get('/api/data',(req,res)=>{
        res.send({
            code:200,
            data:datalist
        })
    })
}